package com.imarad.bio.socket.common;

/**
 * @author hhu 【huan.hu@cnambition.com】
 * @version com.imarad.demo, v 0.1 2018/1/30 14:13 hhu Exp $$
 */
public class Constants {
    /**
     * 数据包包头长度
     */
    public static final int  PACKET_HEADER_LEN = 17;

    /**
     * 接入指令
     */
    public static final byte LOGIN_COMMAND     = 1;

    /**
     * 连接指令
     */
    public static final byte CONNECT_COMMAND     = 2;

    /**
     * 发送数据指令
     */
    public static final byte SEND_MSG_COMMAND     = 3;

    /**
     * 发送关闭指令
     */
    public static final byte CLOSE_SOCKET_COMMAND     = 4;


    public static final boolean PUBLIC_SOCKET_CONNECT = true;

    /**
     * 接收数据包最大
     */
    public static final int  RECEVIE_SOCKET_PACKET_TOTAL_LEN = 1500;

    public static final int LOCAL_AREA_NETWORK = 1;

    public static final int INTERNET = 2;
}